# To activate Microsoft System
irm https://massgrave.dev/get | iex


function _sudo {
    $ss = "$args ; pause"
    Start-Process powershell -Verb runAs -ArgumentList $ss
}
Function _su {Start-Process -verb runas "C:\Windows\System32\WindowsPowerShell\v1.0\Powershell.exe"}

Set-Alias su _su
set-alias  -name sudo -value _sudo

# $scriptBlock = {
#     winget source remove winget
#     winget source add winget https://mirrors.ustc.edu.cn/winget-source
# }
# sudo Start-Process -FilePath "powershell" -Verb RunAs -ArgumentList "-Command", ($scriptBlock -join " ")


# sudo winget source remove winget
# sudo winget source add winget https://mirrors.ustc.edu.cn/winget-source